package text00.tx01.demo01;

// 主人
public class People<T extends Pet> {
    private T pet;

    public People(T pet) {
        this.pet = pet;
    }

    public void shopping() {
        System.out.println("主人带着宠物去逛街...");
        pet.makeSound();
    }
}
